const accessory = {
  namespaced: true,
  state: {
    carList:[], //已识别过的车辆信息
    carInfo: {}, //用户选择的车型
    selectresult: [], //发布询价的配件列表
    quality: ['不限','原厂','品牌','拆车件','其他'], //品质
    status: {
      0: '已取消',
      10: '待报价',
      20: '已报价',
      25: '已完成',
      30: '已过期'
    },
    statusIcon:{
      0: 'iconfabu-cha',
      10: 'icondingdandengdai',
      20: 'icondindanwancheng',
      25: 'icondindanwancheng',
      30: 'iconfabu-cha'
    },
    quoteOrderStatus: {
      0: '待付款',
      5: '已取消',
      10: '待发货',
      20: '已发货',
      30: '已完成',
    },
    quoteOrderStatusIcon:{
      0: 'icondingdandengdai',
      5: 'iconfabu-cha',
      10: 'icondingdandengdai',
      20: 'icondindanwancheng',
      30: 'icondindanwancheng'
    },
    inquiryOrderStatus: {
      0: '待付款',
      5: '已取消',
      10: '待发货',
      20: '待收货',
      30: '已完成',
    },
    inquiryOrderStatusIcon:{
      0: 'icondingdandengdai',
      5: 'iconfabu-cha',
      10: 'icondingdandengdai',
      20: 'icondingdandengdai',
      30: 'icondindanwancheng'
    },
  },

  mutations: {
    setCarList(state, data) {
      state.carList = data
    },
    setCarInfo(state, data){
      state.carInfo = data
    },
    setSelectresult(state, data){
      console.log(data)
      state.selectresult = data
    },
    //清除已选数据
    cleanInfo(state){
      state.selectresult = [];
      state.carInfo = {};
      state.carList = []
    },
  },

  actions: {

  },
}

export default accessory